package com.xiaoxi.open.design.creation.abstractfactorypattern.service.page.table;

import com.xiaoxi.open.design.creation.abstractfactorypattern.service.page.factory.TrayService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @Author xiaoxi
 * @ProjectName creation_pattern
 * @PackageName com.xiaoxi.open.design.creation.abstractfactorypattern.service.page.table
 * @ClassName TableTrayService
 * @Description 表格托盘
 * @Date 2024/5/11 17:20
 * @Version 1.0
 */
@Service
@Slf4j
public class TableTrayServiceImpl implements TrayService {
    @Override
    public String makeHTML() {
        return "<table>\n" +
                "  <tr>\n" +
                "    <th>月份</th>\n" +
                "    <th>储蓄</th>\n" +
                "  </tr>\n" +
                "  <tr>\n" +
                "    <td>一月</td>\n" +
                "    <td>￥3400</td>\n" +
                "  </tr>\n" +
                "  <tr>\n" +
                "    <td>二月</td>\n" +
                "    <td>￥4500</td>\n" +
                "  </tr>\n" +
                "</table>";
    }
}
